<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>${article.title} - ${site.name}</title>
    <meta name="description" content="${article.articleExt.seoDescription}">
    <meta name="keywords" content="${article.articleExt.seoKeywords}">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.6;
            color: #333;
            background: #f8f9fa;
        }

        .product-container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        }

        .product-header {
            background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
            color: white;
            padding: 40px;
            text-align: center;
        }

        .product-category {
            display: inline-block;
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 20px;
            border-radius: 25px;
            font-size: 14px;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .product-title {
            font-size: 36px;
            font-weight: bold;
            margin-bottom: 15px;
            line-height: 1.2;
        }

        .product-subtitle {
            font-size: 20px;
            opacity: 0.9;
            margin-bottom: 25px;
        }

        .product-meta {
            display: flex;
            justify-content: center;
            gap: 30px;
            font-size: 14px;
            opacity: 0.9;
            flex-wrap: wrap;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .product-gallery {
            padding: 40px;
            text-align: center;
        }

        .product-main-image {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            margin-bottom: 20px;
        }

        .product-thumbnails {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .thumbnail {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border-color 0.3s;
        }

        .thumbnail:hover {
            border-color: #2ecc71;
        }

        .product-content-wrapper {
            padding: 0 40px 40px;
        }

        .product-overview {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 30px;
        }

        .product-overview h3 {
            color: #2ecc71;
            font-size: 24px;
            margin-bottom: 15px;
        }

        .product-overview p {
            font-size: 16px;
            line-height: 1.8;
            color: #555;
        }

        .product-features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin: 30px 0;
        }

        .feature-card {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 25px;
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .feature-icon {
            font-size: 40px;
            margin-bottom: 15px;
        }

        .feature-title {
            font-size: 18px;
            font-weight: bold;
            color: #2ecc71;
            margin-bottom: 10px;
        }

        .feature-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
        }

        .product-content {
            font-size: 16px;
            line-height: 1.8;
            margin: 30px 0;
        }

        .product-content h2 {
            color: #2ecc71;
            font-size: 28px;
            margin: 40px 0 20px 0;
            padding-bottom: 15px;
            border-bottom: 3px solid #e8f5e8;
        }

        .product-content h3 {
            color: #555;
            font-size: 22px;
            margin: 30px 0 15px 0;
        }

        .product-content p {
            margin-bottom: 18px;
            text-align: justify;
        }

        .product-content ul,
        .product-content ol {
            margin: 20px 0;
            padding-left: 30px;
        }

        .product-content li {
            margin-bottom: 10px;
        }

        .product-specs {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 30px;
            margin: 30px 0;
        }

        .product-specs h3 {
            color: #2ecc71;
            font-size: 24px;
            margin-bottom: 20px;
        }

        .specs-table {
            width: 100%;
            border-collapse: collapse;
        }

        .specs-table th,
        .specs-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #dee2e6;
        }

        .specs-table th {
            background: #e8f5e8;
            font-weight: bold;
            color: #2ecc71;
        }

        .specs-table tr:hover {
            background: #f1f8f1;
        }

        .product-cta {
            background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
            color: white;
            padding: 40px;
            text-align: center;
            margin: 40px 0;
            border-radius: 12px;
        }

        .cta-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 15px;
        }

        .cta-desc {
            font-size: 16px;
            margin-bottom: 25px;
            opacity: 0.9;
        }

        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .cta-button {
            background: white;
            color: #2ecc71;
            padding: 12px 30px;
            border: none;
            border-radius: 25px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            transition: transform 0.3s;
        }

        .cta-button:hover {
            transform: translateY(-2px);
        }

        .cta-button.secondary {
            background: transparent;
            color: white;
            border: 2px solid white;
        }

        .product-footer {
            background: #f8f9fa;
            padding: 30px 40px;
            border-top: 1px solid #e9ecef;
        }

        .product-tags {
            margin-bottom: 20px;
        }

        .product-tags h4 {
            color: #555;
            margin-bottom: 10px;
            font-size: 16px;
        }

        .tag {
            display: inline-block;
            background: #2ecc71;
            color: white;
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 12px;
            margin-right: 10px;
            margin-bottom: 8px;
            text-decoration: none;
            transition: background 0.3s;
        }

        .tag:hover {
            background: #27ae60;
        }

        .product-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            color: #666;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
        }

        .breadcrumb {
            background: #e9ecef;
            padding: 15px 40px;
            font-size: 14px;
        }

        .breadcrumb a {
            color: #2ecc71;
            text-decoration: none;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        @media (max-width: 768px) {
            .product-container {
                margin: 0;
                box-shadow: none;
            }

            .product-header {
                padding: 25px 20px;
            }

            .product-title {
                font-size: 28px;
            }

            .product-gallery,
            .product-content-wrapper,
            .product-footer,
            .breadcrumb {
                padding: 20px;
            }

            .product-features {
                grid-template-columns: 1fr;
            }

            .product-meta {
                flex-direction: column;
                gap: 10px;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .product-stats {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
        }
    </style>
</head>
<body>
    <div class="product-container">
        <!-- 面包屑导航 -->
        <nav class="breadcrumb">
            <a href="/">首页</a> > 
            <a href="/portal/channel/${article.channelId}">${article.channel.name}</a> > 
            ${article.title}
        </nav>

        <!-- 产品头部 -->
        <header class="product-header">
            <div class="product-category">${article.channel.name}</div>
            <h1 class="product-title">${article.title}</h1>
            <#if article.subtitle??>
                <p class="product-subtitle">${article.subtitle}</p>
            </#if>
            
            <div class="product-meta">
                <span class="meta-item">
                    <span>🏷️</span>
                    <span>产品编号：${article.alias!'PRD-001'}</span>
                </span>
                <span class="meta-item">
                    <span>📅</span>
                    <span>发布时间：${article.publishDate?string('yyyy-MM-dd')}</span>
                </span>
                <span class="meta-item">
                    <span>👁️</span>
                    <span>${article.views} 次浏览</span>
                </span>
                <span class="meta-item">
                    <span>⭐</span>
                    <span>${article.favorites} 次收藏</span>
                </span>
            </div>
        </header>

        <!-- 产品图片展示 -->
        <#if article.image??>
            <div class="product-gallery">
                <img src="${article.image}" alt="${article.title}" class="product-main-image">
                <!-- 缩略图可以通过自定义字段扩展 -->
            </div>
        </#if>

        <!-- 产品内容 -->
        <div class="product-content-wrapper">
            <!-- 产品概述 -->
            <#if article.subtitle??>
                <div class="product-overview">
                    <h3>🎯 产品概述</h3>
                    <p>${article.subtitle}</p>
                </div>
            </#if>

            <!-- 产品特性 -->
            <div class="product-features">
                <div class="feature-card">
                    <div class="feature-icon">🚀</div>
                    <div class="feature-title">高性能</div>
                    <div class="feature-desc">采用先进技术，提供卓越的性能表现</div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">🛡️</div>
                    <div class="feature-title">安全可靠</div>
                    <div class="feature-desc">多重安全保障，确保数据安全</div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">🎨</div>
                    <div class="feature-title">易于使用</div>
                    <div class="feature-desc">简洁直观的界面设计，操作简单</div>
                </div>
                <div class="feature-card">
                    <div class="feature-icon">🔧</div>
                    <div class="feature-title">灵活定制</div>
                    <div class="feature-desc">支持个性化定制，满足不同需求</div>
                </div>
            </div>

            <!-- 详细介绍 -->
            <div class="product-content">
                ${article.articleExt.content}
            </div>

            <!-- 产品规格 -->
            <div class="product-specs">
                <h3>📋 产品规格</h3>
                <table class="specs-table">
                    <tr>
                        <th>规格项目</th>
                        <th>详细参数</th>
                    </tr>
                    <tr>
                        <td>产品型号</td>
                        <td>${article.alias!'PRD-001'}</td>
                    </tr>
                    <tr>
                        <td>发布时间</td>
                        <td>${article.publishDate?string('yyyy年MM月')}</td>
                    </tr>
                    <tr>
                        <td>适用场景</td>
                        <td>${article.channel.name}</td>
                    </tr>
                    <tr>
                        <td>技术支持</td>
                        <td>7×24小时在线支持</td>
                    </tr>
                </table>
            </div>

            <!-- 行动号召 -->
            <div class="product-cta">
                <h3 class="cta-title">立即体验 ${article.title}</h3>
                <p class="cta-desc">联系我们获取更多产品信息和专业咨询服务</p>
                <div class="cta-buttons">
                    <a href="#contact" class="cta-button">立即咨询</a>
                    <a href="#demo" class="cta-button secondary">在线演示</a>
                </div>
            </div>
        </div>

        <!-- 产品底部 -->
        <footer class="product-footer">
            <!-- 标签 -->
            <#if article.tags?? && article.tags?size > 0>
                <div class="product-tags">
                    <h4>🏷️ 产品标签：</h4>
                    <#list article.tags as tag>
                        <a href="/portal/tag/${tag.id}" class="tag">${tag.name}</a>
                    </#list>
                </div>
            </#if>

            <!-- 统计信息 -->
            <div class="product-stats">
                <div>
                    <span>发布时间：${article.publishDate?string('yyyy-MM-dd')}</span>
                    <span style="margin-left: 20px;">最后更新：${article.updateDate?string('yyyy-MM-dd')}</span>
                </div>
                <div>
                    <span>浏览：${article.views} 次</span>
                    <span style="margin-left: 20px;">收藏：${article.favorites} 次</span>
                    <span style="margin-left: 20px;">下载：${article.downloads} 次</span>
                </div>
            </div>
        </footer>
    </div>
</body>
</html>
